package com.whminwei.edu.api.base.client;

import com.whminwei.common.feign.decoder.FullHttpRspnConfig;
import com.whminwei.common.http.rspn.FullHttpResponse;
import com.whminwei.edu.api.base.dto.feq.SpecialityFeq;
import com.whminwei.edu.api.base.dto.fspn.SpecialityFspn;
import com.whminwei.edu.api.base.dto.fspn.SpecialityIdFspn;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wangy
 * @since 2024/4/25
 */
@FeignClient(name = "xzzg-pt-base-service", contextId = "speciality-info", configuration = FullHttpRspnConfig.class)
public interface SpecialityClient {
    /**
     * 查询所有专业列表
     *
     * @return com.whminwei.common.http.rspn.FullHttpResponse<com.whminwei.edu.api.base.dto.fspn.SpecialityFspn>
     * @author wangy
     * @since 15:27 2024/4/25
     **/
    @PostMapping("/speciality/getSpecialityList")
    FullHttpResponse<SpecialityFspn> getSpecialityList();

    /**
     *  通过目录专业id查询其兄弟目录专业列表
     * @author wangy
     * @since 13:37 2024/8/27
     * @param req
     * @return com.whminwei.common.http.rspn.FullHttpResponse<com.whminwei.edu.api.base.dto.fspn.SpecialityIdFspn>
     **/
    @PostMapping("/speciality/getBrotherNode")
    FullHttpResponse<SpecialityIdFspn> getBrotherNode(@RequestBody SpecialityFeq req);

}
